﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vara_Data_Layer.Vara_Data_Location
{
    public class Vara_Data_AssetLocation_Controller
    {
        private List<Vara_Data_IAssetLocation> _locations;
        public List<Vara_Data_IAssetLocation> Locations
        {
            get
            {
                if (_locations == null)
                    Refresh_Location_List();

                return _locations;
            }
            set
            {
                _locations = value;
            }
        }

        public Vara_Data_IAssetLocation ReturnLocation(int ID)
        {
            return _locations.Find(delegate(Vara_Data_IAssetLocation AssetLocation){return AssetLocation.ID == ID;});
        }

        public void Refresh_Location_List()
        {
        }
    }
}
